how to write an opera